package com.zzty.zzlp.dao;

import com.zzty.zzlp.entity.Clazz;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ClazzMapper {
    @Select("select id from clazz where name = #{name}")
    public int searchClazzidByName(String name);

    @Select("select * from clazz")
    public List<Clazz> getAllClazz();

    @Select("select #{sql} from clazz" )
    public List<Clazz> selectBySql(String sql);
}
